import yaml
from yaml import safe_load

f=open("../data/data.yaml",encoding="utf-8")
data=safe_load(f)
print(data["hero"]["name"])